#include "marquee.h"
#include "marquee_dragonball.h"
namespace igslib
{
	IMarqueeManager* CMarqueeManager::instance = 0;
	IMarqueeManager* CMarqueeManager::GetInstance() 
	{
		if ( instance == 0 )
		{
			instance = new CMarqueeManager();
		}
		return instance ;
	}

    void CMarqueeManager::DeleteMarquee(IMarquee* value)
    {
        delete value;
    }
	CMarqueeManager::~CMarqueeManager()
	{
        for(auto& each:marquees)
        {
            delete each;
			count--;
        }
	}

	
	IMarquee* CMarqueeManager::New_ProjMCU(const std::string& name)
	{
		IMarquee* rtn = nullptr;
		if(name=="DragonBallRace")
			rtn = new marquee_Grgn();
        return rtn;	
	}
}

extern "C"{
	igslib::IMarqueeManager* GetMarqueeManagerInstance()
	{
		return igslib::CMarqueeManager::GetInstance();
	}
}
